/**
* 
*/
package com.godpaper.as3.ds.sort
{
	import flash.events.Event;
	/**
	 * 
	 * @author YangBo
	 * 
	 */	
	public class SortBase implements ISortBase
	{
		
		[Bindable]private var _sentinel:Number;
		[Bindable]private var _beSorted:Array;
		[Bindable]private var _sortResult:Array;
		
		public function SortBase()
		{
			//TODO: implement function
		}
		/**
		 * 
		 * @param value set a sort sentinel-box
		 * 
		 */		
		public function set sentinel(value:Number):void
		{
			_sentinel = value;
		}
		/**
		 * 
		 * @return a sort sentinel's value 
		 * 
		 */		
		public function get sentinel():Number
		{
			return _sentinel;
		}
		/**
		 * 
		 * @param value set beSorted data
		 * 
		 */		
		public function set beSorted(value:Array):void
		{
			_beSorted = value;
		}
		/**
		 * 
		 * @return beSorted data
		 * 
		 */		
		public function get beSorted():Array
		{
			return _beSorted;
		}
		/**
		 * 
		 * @param value set sort result
		 * 
		 */		
		public function set sortResult(value:Array):void
		{
			_sortResult = value;			
		}
		/**
		 * 
		 * @return sort result
		 * 
		 */		
		public function get sortResult():Array
		{
			return _sortResult;
		}
		/**
		 * 
		 * @param data indicates beSorted data
		 * @return sort result as array
		 * 
		 */		
		public function sort(data:Array):Array
		{
			//TODO: implement function
			beSorted = data;
			
			return null;
		}
		/**
		 * 
		 * @param func dump the sort trace;
		 * 
		 */		
		public function dump(func:Function):void
		{
			//TODO: implement function
		}
		
		
	}
}